<?php
// 本类由系统自动生成，仅供测试用途
class WebInfoAction extends BaseAction{
    public function index(){
		
    	$dao = D("WebInfo");

    	$webInfo = $dao->find();

    	$this->assign('webInfo',$webInfo);
		Cookie::set ( '_currentUrl_', __URL__.'/index' );
        $this->display();
    }
	
	public function _before_update() {
		if( !isset( $_REQUEST['enable_cover'] ) )
			$_POST['enable_cover'] = 0;
		if( !isset( $_REQUEST['artc_check'] ) )
			$_POST['artc_check'] = 0;
		if( !isset( $_REQUEST['job_check'] ) )
			$_POST['job_check'] = 0;
	}
}
?>